#include "ref.h"

namespace org {
namespace antban {
namespace ptr {

Ref::Ref()
	: m_RefCount(0) { 
}

void Ref::addRef() {
	++m_RefCount;
}
	
void Ref::releaseRef() {
	if (0 == --m_RefCount) {
		delete this;
	}
}


Ref::~Ref() {
}

} // namespace ptr
} // namespace antban
} // namespace org
